import http from "@/api/axios";

export const getListApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizCountryRegionManage/page",
    data
  });
};
export const addRegionApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizCountryRegionManage/addBizCountryRegion",
    data
  });
};
export const editRegionApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizCountryRegionManage/updateBizCountryRegion",
    data
  });
};
export const updateRegionStatusApi = (data: CountryRegion.AddForm) => {
  return http({
    method: "post",
    url: "/base/biz/bizCountryRegionManage/updateStatus",
    data
  });
};
// 获取所有国家
export const getAllCountryApi = (status: number) => {
  return http({
    method: "get",
    url: `/base/biz/bizCountryRegionManage/list/${status}`
  });
};
